


import { getRequest, postRequest } from '@/lib/axios';
import { GAMELIST, GAMEADD,GAMEINFO,GAMEUPDATE,GAMEDEL,GAMEHIDE,GAMEBIND,GOLDEXCHANAGE, GAMECATEGORY } from '@/config/api-constant/moby'

// 游戏列表
export const gameListApi = (param) => {
    return getRequest(GAMELIST, param)
}

// 用户绑定
export const gameBindListApi = (param) => {
    return getRequest(GAMEBIND, param)
}
// 金币兑换记录
export const goldExchangeApi = (param) => {
    return getRequest(GOLDEXCHANAGE, param)
}

// 添加游戏
export const gameAddApi = (param) => {
    return postRequest(GAMEADD, param)
}

// 游戏详情
export const gameInfoApi = (param) => {
    return getRequest(GAMEINFO, param)
}

//游戏更新
export const gameUpdateApi = (param) => {
    return postRequest(GAMEUPDATE, param)
}

// 删除游戏
export const gameDelApi = (param) => {
    return postRequest(GAMEDEL, param)
}

// 上、下架游戏
export const gameHideApi = (param) => {
    return postRequest(GAMEHIDE, param)
}

// 游戏分类列表
export const gameCategoryListApi = (param) => {
    return getRequest(GAMECATEGORY, param)
}

// 游戏分类新增编辑
export const gameCategoryUpdateApi = (param) => {
    return postRequest(GAMECATEGORY, param)
}
